package www.openteam.com.bean;

/**
 * Created by Administrator on 2019-12-24.
 * 盘点单子单类，用于存放需要保存到stCheckStocklst的数据
 */

public class StockTaxSubTable {
    /**
     * code : 10001-10sp001    code
     * name : 10丝普通透明不含P胶布
     * specs : 1220mm
     * unit : 千克
     * batchNo : OTZOOI180300001-1   batchNo
     * LCode : 10002      location
     * numb : 115.00000000   stnumb
     * sMoney : .00
     * Location : 原纸B仓 原纸仓
     * sumnumb : 115.00000000
     * sumMoney : .00
     * sumPirce : .000000    price 单价
     */
    private String type;
    private String location;//库位编号
    private String code;//分类编号
    private String stnumb;//库存数量
    private int cknumb;//盘点数量
    private String price;//单价
    private String batchNo;//入库批号
    private String deleteFlag = "0";
    private String sFlag = "1";
    private String tempbatch = "";
    private String stype ;
    private String inputDate;

//    private String name;//名称
//    private String specs;//规格
//    private String unit;//单位
//    private String sMoney;//
//    private String Location;//库位名称
//    private String sumnumb;//
//    private String sumMoney;//
//    private String sumPirce;//


    public StockTaxSubTable() {
    }

    public StockTaxSubTable(String type, String location, String code, String stnumb, int cknumb, String price,
                            String batchNo, String deleteFlag, String sFlag, String tempbatch, String stype,
                            String inputDate) {
        this.type = type;
        this.location = location;
        this.code = code;
        this.stnumb = stnumb;
        this.cknumb = cknumb;
        this.price = price;
        this.batchNo = batchNo;
        this.deleteFlag = deleteFlag;
        this.sFlag = sFlag;
        this.tempbatch = tempbatch;
        this.stype = stype;
        this.inputDate = inputDate;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getLocation() {
        return location;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getStnumb() {
        return stnumb;
    }

    public void setStnumb(String stnumb) {
        this.stnumb = stnumb;
    }

    public int getCknumb() {
        return cknumb;
    }

    public void setCknumb(int cknumb) {
        this.cknumb = cknumb;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getBatchNo() {
        return batchNo;
    }

    public void setBatchNo(String batchNo) {
        this.batchNo = batchNo;
    }

    public String getStype() {
        return stype;
    }

    public void setStype(String stype) {
        this.stype = stype;
    }

    public String getInputDate() {
        return inputDate;
    }

    public void setInputDate(String inputDate) {
        this.inputDate = inputDate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        StockTaxSubTable that = (StockTaxSubTable) o;

        if (stnumb != that.stnumb) return false;
        if (cknumb != that.cknumb) return false;
        if (type != null ? !type.equals(that.type) : that.type != null) return false;
        if (location != null ? !location.equals(that.location) : that.location != null)
            return false;
        if (code != null ? !code.equals(that.code) : that.code != null) return false;
        if (price != null ? !price.equals(that.price) : that.price != null) return false;
        if (batchNo != null ? !batchNo.equals(that.batchNo) : that.batchNo != null) return false;
        if (deleteFlag != null ? !deleteFlag.equals(that.deleteFlag) : that.deleteFlag != null)
            return false;
        if (sFlag != null ? !sFlag.equals(that.sFlag) : that.sFlag != null) return false;
        if (tempbatch != null ? !tempbatch.equals(that.tempbatch) : that.tempbatch != null)
            return false;
        if (stype != null ? !stype.equals(that.stype) : that.stype != null) return false;
        return inputDate != null ? inputDate.equals(that.inputDate) : that.inputDate == null;
    }

    @Override
    public int hashCode() {
        int result = type != null ? type.hashCode() : 0;
        result = 31 * result + (location != null ? location.hashCode() : 0);
        result = 31 * result + (code != null ? code.hashCode() : 0);
        result = 31 * result + (stnumb != null ? stnumb.hashCode() : 0);;
        result = 31 * result + cknumb;
        result = 31 * result + (price != null ? price.hashCode() : 0);
        result = 31 * result + (batchNo != null ? batchNo.hashCode() : 0);
        result = 31 * result + (deleteFlag != null ? deleteFlag.hashCode() : 0);
        result = 31 * result + (sFlag != null ? sFlag.hashCode() : 0);
        result = 31 * result + (tempbatch != null ? tempbatch.hashCode() : 0);
        result = 31 * result + (stype != null ? stype.hashCode() : 0);
        result = 31 * result + (inputDate != null ? inputDate.hashCode() : 0);
        return result;
    }
}
